<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户注册</title>
    <link rel="stylesheet" href="css/base.css"/>
    <link rel="stylesheet" href="css/register.css"/>
    <link rel="stylesheet" href="js/register.js"/>
    <script src="js/register.js"></script>
   	<script src="js/login.js"></script>
</head>
</head>
<body>
    <div id="main">
        <div id="header">
        </div>
        <div class="container">
            <div class="bgPic"><img src="img/5.jpg" alt=""/></div> 
            <div class="register">          
                <div class="title">
                    <span>注册</span>
                    <a href="login.jsp">去登录</a>
                </div>
                <form action="RegisterServlet" method="post" onsubmit="return logincheck()">
                	<p style="font-size: 10px">用户名<span id ="namespan" style="color: red;font-size: 12px"></span></p>
                    <div class="default">                  	
                        <input id="uname" name="uname" type="text" onfocus="focusObj(this)" onblur="blurname(this)"/>
                    </div>
                    <p style="font-size: 10px">请输入密码<span id="pwdspan"style="color: red;font-size: 12px"></p>
                    <div class="default">
                        <input id="upwd" name="upwd"  type="password" onfocus="focusObj(this)" onblur="blurpwd(this)"/>
                    </div>
                    <p style="font-size: 10px">重复输入密码<span id="pwd_2span" style="color: red;font-size: 12px"></p>
                    <div class="default">
                        <input id="upwd_2" name="upwd_2" type="password" onfocus="focusObj(this)" onblur="blurRePwd(this)"/>
                    </div>
                    <p style="font-size: 10px">请输入手机号<span id="telspan" style="color: red;font-size: 12px"></p>
                    <div class="default">
                        <input id="phone" name="phone" type="text" onfocus="focusObj(this)" onblur="blurtel(this)"/>
                    </div>
                    <div class="submit">
                        <span class="notice">点击"注册"代表您同意遵守
                            <a href="#">用户协议</a>
                            <a href="#">隐私条款</a>
                        </span>
                        <button class="s_hover" type="submit">注册</button>
                    </div>
                </form>
            </div>
        </div>
        <div id="footer">
        </div>
    </div>
    	<%
		if(request.getAttribute("addSuccess") != null){				
	%>
		<script>
			alert("注册成功!");		
		</script>
	<%
		}
		if(request.getAttribute("addError") !=null){
	%>
		<script>
			alert("注册失败！");
		</script>
	<%
		}
	%>
</body>
</html>